package com.bgds.sys.rbac.service;

import com.bgds.sys.common.base.BaseService;
import com.bgds.sys.rbac.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author lj
 */
public interface UserService extends BaseService<User,Long> {

    /**
     * 关键字查询用户
     * @param key
     * @param pageable
     * @return
     */

    Page<User> listByCondition(String key, Pageable pageable);

    /**
     * 更新用户角色
     * @param userId
     * @param roleId
     */
    void updateUserRole(Long userId, Long roleId);


}
